home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 128 26
/
q26.d81
/
t.dt128 docs 3
< prev
next >
Wrap
Text File
|
2022-08-28
|
17KB
|
477 lines
Buffer Utility
--------------
Edit Buffer:
With this option you enter the buffer editor. See the section below for
commands.
Save Buffer:
Allows you to save the buffer to disk. You must enter a file name, file
type, and conversion (see "conversions")
Append to Disk:
Allows you to append the buffer to a pre-existing disk file.
Load Buffer:
Load a file from disk. The capture buffer is cleared first.
Append to Buffer:
Appends a disk file to the end of the buffer.
Print Buffer:
Enters a submenu where printing parameters are set.
Print to:
Sets the print destination device. Can be Screen, Disk, Modem, or
Printer.
Output Codes:
Can be True Ascii or PetAscii. If True Ascii, the buffer is printed
with NO conversion. If PetAscii, the buffer is converted from True Ascii
to PetAscii.
Printer Device Number:
Can be 4 or 5
Printer Secondary Address:
Can be 0-255
Print Module:
This is a module that allows you to set many more printing variables and
formatting options.
Print:
Starts printing. For screen and modem printing, the character delay
value in the Buffer Menu is used. The print speed can be varied during
printing by pressing the arrow up key to speed up, and the arrow down key
to slow down. You can pause screen and modem printing by pressing the
SHIFT key. Printer and disk printing is ALWAYS full speed. Emulations ARE
active for screen printing! When printing the bytes free will count down
the number of bytes still to be printed.
Delay Factors - 128 0
The first digit is the delay factor per character. Zero is full speed,
255 is the slowest. For modem prints, this value becomes very important.
If this number is too low you may get garbled characters. The second digit
is how long to pause after each RETURN is printed, in seconds.
Buffer Open:
No - Not capturing characters
Yes - Capturing text only
All - Capturing all codes
Buffer Wrap:
Tells whether the buffer word wrap is on or off.
Clear Buffer:
Clears the buffer.
Fast Disk Access:
This is a system module for 1541 users. It features high speed load,
append, and save routines. See "fastbuf" for further information.
Conversions:
Loading:
True Ascii - loads the file, no conversion
PetAscii - load and convert file from PetAscii to True Ascii
Screen Codes - load and convert file from screen codes to True Ascii
Basic - allows you to load C64/C128 Basic programs as text files
When loading a Basic program, the terminal type determines whether it
is loaded as a True Ascii text file, or a PetAscii text file. If the
terminal type is C/G it is loaded as a PetAscii text file. Otherwise it is
loaded as a True Ascii text file. There are a few unique features for True
Ascii images. Any character code that cannot be converted to Ascii will
appear in braces <>. PRINT"CLR" loads as PRINT<147>. PI will also appear
within braces.
Load a BASIC program that has some print statements in it with cursor
controls to see how this works.
Saving:
True Ascii - save to capture buffer with no conversion
PetAscii - save buffer, convert from True Ascii to Ascii
Screen Codes - save buffer, convert from True Ascii to screen codes
Basic - save a text file as a Basic program
In order for this to work each line must start with a number with a
space following it. Each line can be up to 160 characters long and must
end with a carriage RETURN. If the text file is in True Ascii, the
terminal type must be set to anything but C/G. If the text file is in the
buffer as PetAscii codes, then the terminal type must be C/G. To save the
file in C64 BASIC format, set the screen width to 40 columns. To save the
file in C128 BASIC format, set the screen width to 80 columns.
Terminal type and screen width are found in "Terminal Options."
A short example...
Set the terminal type to Ascii. Clear the buffer and enter the
editor. Type the following line:
10 print"[147]this is a test"
exit the editor with ESCape. (braces are Alt-[ and Alt-]). Save the
buffer to disk with any file name, select "p" for program file, and "b" for
BASIC. Exit DT128 and load the program with ,8. Then list it.
Notes:
For PetAscii and screen code conversions, any character that can't be
converted is LOST!
When saving text to a BASIC file, the save is extremely slow. This is
because each line must be tokenized before it can be saved.
If you attempt to load a text file with BASIC conversion, the system will
appear to lock up. The reason for this is BASIC program lines end with a
code of zero, a character that will virtually never be found in a text
file. The system is looking for the character zero [chr$(0)], but can't
find it. Characters are loading even though the byte count displays will
not update. Eventually the end of the file will be reached and you will
regain control.
RETURN will select the first file type and the first conversion at the
file
type and conversion prompts.
Buffer Editor
-------------
The capture buffer is designed to be an Ascii editor. You can capture C/G
(PetAscii) or even enter PetAscii codes directly from the keyboard, but the
characters will not look right. Any code 0-255 can be used, which is
useful for creating emulated files, or examining received escape
sequences.
F1 - is the "gold" key. Several keys have more than 1 function. The
secondary functions require that you press F1 first, then the key. The
gold key is active when the "G" indicator is lit.
F2 - deletes 1 word forward or backward depending on the left/right arrow
indicator
F3 - selects either insert or overstrike text mode (see the "I"
indicator).
F4 - delete 1 sentence forward or backward depending on the left/right
arrow indicator
F5 - allows repetition of a key or command. Press F5 and you will be
prompted to enter a repeat factor from 1-999. Then press the key or
command to repeat.
Try this:
In the editor press F5. You will see the cursor by the "REPETITIONS" at
the lower right of the screen. Enter the number 79 on the keyboard and
press RETURN. Now press the dash "-". You should see 79 dashes. The key
or command you press is repeated the number of times you specified. The
ESCape key aborts this function.
You can use repetitions in macros. Press KEYPAD 5 to enter a macro.
Then press F5 and enter a digit from 1-999. Then enter the key or command
to repeat. F5xxxC where xxx is the number of times to repeat
character/command c.
To repeat a letter "c" 100 times in a macro enter:
(F5)100c
to repeat "c" 7 times enter:
(F5)7c
The repeat factor can be entered as a 1 to 3 digit number UNLESS the
character to be repeated is a digit. To repeat a "7" 9 times you must must
enter the repeat value as a 3 digit number as follows:
(F5)0097
xxx
You must force the repeat value to 3 digits when repeating a digit. The
following is incorrect:
(F5)97
The reason is because the macro interpreter will evaluate the 97 as a
repeat value of 97 rather than repeat the "7" 9 times. By forcing leading
zeroes when necessary to a repeat value you force the interpreter to
evaluate (F5)0097 as repeat "7" 9 times because the interpreter will use at
most 3 digits for a repeat value, "009" in this example.
(F5) means press the F5 KEY in the above examples.
F6 - delete 1 paragraph forward or backward depending on the left/right
arrow indicator
F7 - changes the Ascii keyboard to a PetAscii keyboard. PetAscii mode
remains in affect until you press the ESCape key. In PetAscii mode your
typed characters will not look correct. This is because PetAscii
characters are being represented by an Ascii character set.
F8 - redraws the screen.
Arrow Up - Move backward "up" 1 sentence
If the "A" indicator is turned on (Alt-A), this command moves up 1
screen row with no scrolling
Arrow Down - Move forward "down" 1 sentence
If the "A" indicator is turned on (Alt-A), this command moves down 1
screen row with no scrolling
Arrow Left - Move left "backward" 1 word
Arrow Right - Move right "forward" 1 word
Cursor Up - Move up 1 paragraph
Cursor